package com.jellyfishumbrella.GL;

import static org.lwjgl.opengl.GL11.*;

public class MyFog {
	public float density = 0.035f;
	public float[] color = {0.5f, 0.5f, 0.5f, 1.0f};
	
	public MyFog(){
		init();
	}
	
	public void init(){
		glEnable(GL_FOG);
		glFogi(GL_FOG_MODE, GL_EXP2);
//		glFog3(GL_FOG_COLOR, color);
		glFogf(GL_FOG_DENSITY, density);
		glHint(GL_FOG_HINT, GL_NICEST);
		glFogf(GL_FOG_START,1000.0f);
		glFogf(GL_FOG_END, 15000.0f);
		System.out.println("enabling fog");
	}

}
